﻿<!DOCTYPE html>

<html>

<head>

	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
	<title>Yelper - @ViewBag.Title</title>
	
	<link href="http://ajax.microsoft.com/ajax/jquery.ui/1.8.9/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Styles/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Styles/Main.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Styles/Fonts/Raleway.css")" rel="stylesheet" type="text/css" />

    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.7/jquery.validate.min.js" type="text/javascript"></script>
	<script src="http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
	<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.min.js" type="text/javascript"></script>
   
    <script src="@Url.Content("~/Scripts/rx.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/rx.jQuery.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Yelper.js")" type="text/javascript"></script>

    <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />

    <meta name="application-name" content="Yelper"/>
    <meta name="msapplication-tooltip" content="Start the Yelper App"/>
    <meta name="msapplication-starturl" content="/"/>
    <meta name="msapplication-window" content="width=800;height=600"/>
    <meta name="msapplication-navbutton-color" content="#d1944e" />

    <meta name="msapplication-task" content="name=New Yelp; action-uri=http://www.yelper.eu/; icon-uri=/Content/Browser/yelp.ico" />
    <meta name="msapplication-task" content="name=Mentions ; action-uri=http://www.yelper.eu/mentions; icon-uri=/Content/Browser/mentions.ico" />

    @RenderSection("head_extra",false)

</head>

<body>

	<div id="wrapper">

	    <a href="/" id="HomeLink"></a>

		<div id="head">
            
			@if (Request.IsAuthenticated)
            {
                @Html.Partial("UserMenuPartial");                 
            }
            else
            {
                @Html.Partial("LoginFormPartial", new Yelper.Web.Models.LogOnModel());
            }

		</div>
		
        @if(IsSectionDefined("center")) {

        <div id="center">
            @RenderSection("center", false)
        </div>
            
        }else{

            if (IsSectionDefined("right")) {
        <div id="content">

		    <div id="left">
			    @RenderBody()
		    </div>
		
		    <div id="right">
			    @RenderSection("right", false)
            </div>
        
        </div>
            } else { 
                
            @RenderBody()
            
            }

        }

		<div id="footer">
			&copy; 2011 Yelper - Some rights reserved - For educational purposes only 
			(<a href="http://yelper.codeplex.com/">source code</a>) - 
			There are no terms of service, be nice. -
            <a href="http://api.yelper.be/">API</a> (OData)
		</div>
	
	</div>

    <script type="text/javascript">

        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-1079477-11']);
        _gaq.push(['_trackPageview']);

        (function () {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();

    </script>

</body>

</html>
